package com.atguigu.mapper.mapper;

import com.atguigu.mapper.entity.Soldier;
import com.atguigu.mapper.entity.SoldierExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface SoldierMapper {
    int countByExample(SoldierExample example);

    int deleteByExample(SoldierExample example);

    int deleteByPrimaryKey(Integer soldierId);

    int insert(Soldier record);

    int insertSelective(Soldier record);

    List<Soldier> selectByExample(SoldierExample example);

    Soldier selectByPrimaryKey(Integer soldierId);

    int updateByExampleSelective(@Param("record") Soldier record, @Param("example") SoldierExample example);

    int updateByExample(@Param("record") Soldier record, @Param("example") SoldierExample example);

    int updateByPrimaryKeySelective(Soldier record);

    int updateByPrimaryKey(Soldier record);
}